package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author jingchun
 * @create 2024-05-01 10:39
 */

public interface ReportService {

	/**
	 * 营业额统计接口
	 * @param begin
	 * @param end
	 * @return
	 */
	TurnoverReportVO getTurnOver(LocalDate begin, LocalDate end);

	/**
	 * 用户统计接口
	 * @param begin
	 * @param end
	 * @return
	 */
	UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

	/**
	 * 查询规定时间内订单数量
	 * @param begin
	 * @param end
	 * @return
	 */
	OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

	/**
	 * 查询指定时间区间内的销量排名top10
	 * @param begin
	 * @param end
	 * @return
	 */
	SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

	/**
	 * 导出近30天运营数据报表
	 * @param response
	 */
	void exportBusinessData(HttpServletResponse response);
}
